#ifndef __LIST_H__
#define __LISTE_H__

#include <stdio.h>
#include <stdlib.h>
#include "SDL.h"
#include "SDL_image.h"
#include "../include/constant.h"
#include "../include/bomb.h"

typedef struct s_list * t_list;

t_bomb bomb;


extern t_list list_new ();

extern t_list list_add (t_list l, t_bomb bomb);

extern t_list list_print_prec(t_list l);
extern t_list list_print_next(t_list l);
extern void update_list_status (t_list l);
extern void update_list_images (t_list l,SDL_Surface *screen);
extern void list_print (t_list l);
extern int list_is_empty (t_list l);
extern int list_is_empty2 (t_list l);
extern void list_number(t_list l);
extern void list_number2(t_list l);
extern t_list list_print_next (t_list l);
extern t_list list_print_prec(t_list l);
extern t_bomb list_print_bomb (t_list l);

extern void update_list_status (t_list l);
extern void update_list_images (t_list l,SDL_Surface *screen);
extern int get_bomb_number(t_list l);




extern void display_list(t_list l);
extern int list_print_time(t_list l);

extern t_list remove_from_list(t_list l);




#endif /*__LIST_H__*/
